Fix DAG ordering of passed -L flags
authorAlex Crichton <alex@alexcrichton.com>
Tue, 2 Feb 2016 19:42:57 +0000 (11:42 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 2 Feb 2016 19:42:57 +0000 (11:42 -0800)
commitc7ab807264eecef941912d29157c31543b2b85f0
tree392d07756fc6cebdb53a8616bd1ad60845075c1f
parentc3006e64a9fdbe1573820dae8a89349b5e83fca7
Fix DAG ordering of passed -L flags

Cargo needs to ensure that if a build script prints a `-L` path that it's the
first `-L` path passed to the compiler. That way the build script can be sure
that any output it generated is the first to be considered by the compiler.

Closes #2354
src/cargo/ops/cargo_rustc/custom_build.rs
tests/test_cargo_compile_custom_build.rs